import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    book:[],
    search:[]
  },
  mutations: {
    book(state,payload){
      state.book=payload.book.list
    },
    search(state,payload){
      state.search.push(payload)
      console.log(state.search)
    },
    zone(state){
       state.search=[]
    }
  },
  actions: {
  },
  modules: {
  }
})
